from django.urls import path
from . import views

urlpatterns = [
    # 新增/查询所有 POST/GET 书籍
    path('books/', views.BookListView.as_view()),

    # 查询/修改/删除一个/ GET/PUT/DELETE 书籍
    path('books/<int:pk>', views.BookDetailView.as_view()),

    path('list/', views.BookInfoAPIView.as_view()),

]